<%@ page import="study.models.Image" %>
<%@ page isELIgnored="false" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	Image name: <%= ((Image)request.getAttribute("Angry Bird")).getName() %>
	<img alt="hehe" src="image/buffalo.jpg">
	<% pageContext.setAttribute("scope","Page context"); %>
	
	scope of attribute: ${requestScope.languages[1] } </br>
	
	scope of attribute EL: ${pageScope["scope"]} </br>
	
	Student name is : ${requestScope.student.name} </br>
	
	Account is : ${ initParam.account } </br>
	other scope of attribute: <%= pageContext.findAttribute("otherScope") %>
	
	 </br>
	session scope of attribute: <%= pageContext.getAttribute("otherScope", pageContext.SESSION_SCOPE) %>
	
	 </br>
	request scope of attribute: <%= pageContext.getAttribute("otherScope", pageContext.REQUEST_SCOPE) %>
	
	 </br>
	application scope of attribute: <%= pageContext.getAttribute("otherScope", pageContext.APPLICATION_SCOPE) %>
	
	</br>
	
	<jsp:useBean id="student" type="study.models.Person" class="study.models.Student" scope="request">
	<jsp:setProperty property="name" name="student" value="oanh tran"/>	
	</jsp:useBean>
	Property name: <jsp:getProperty property="name" name="student"/>
	
</body>
</html>